package chat

import (
	"api/internal/svc"
	"api/internal/types"
	"context"
	"github.com/zeromicro/go-zero/core/logx"
)

type WebSocketLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewWebSocketLogic(ctx context.Context, svcCtx *svc.ServiceContext) *WebSocketLogic {
	return &WebSocketLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *WebSocketLogic) WebSocket(req *types.WebSocketHandlerReadRequest) (resp *types.Response, err error) {
	return &types.Response{
		Data:    true,
		Message: "WebSocket 业务逻辑处理完成",
	}, nil
}
